const getAllCategoriesApi=()=>{
    return $axios({
        url:'/category/findAll',
        method:'get'
    })
}

const addCategoryApi=(params)=>{
    return $axios({
        url:'/category/add',
        method:'post',
        data: {...params}
    })
}

const deleteCategoryApi=(id)=>{
    return $axios({
        url:`/category/delete/${id}`,
        method:'delete'
    })
}

const updateCategoryApi=(params)=>{
    return $axios({
        url:'/category/update',
        method:'put',
        data: {...params}
    })
}